<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<jsp:useBean id="livro" scope="session" class="br.com.integrator.Livro"/>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
         <link href="CSS/style.css" rel="stylesheet" type="text/css" />
        <title>Atualizar Revista</title>
    </head>
    <body style="background-color:#E2E4E4">
         <c:import url="_templates/header.jsp" />
        <h1>Atualizar Revista</h1>
        <form action="ServletRevistas?cmd=atualizar" method="POST">
            <table>
                <tr>
                    <td>ID:</td>
                    <td>
                        <input type="text" name="id" value="${revista.id}" readonly="readonly" />
                    </td>
                </tr>
                
                <tr>
                    <td>Nome:</td>
                    <td>
                        <input type="text" name="nome" value="${revista.nome}" />
                    </td>
                </tr>
                 <tr>
                    <td>Editora:</td>
                    <td>
                        <input type="text" name="editora" value="${revista.editora}" />
                    </td>
                </tr>
                
                <tr>
                    <td>Preço:</td>
                    <td>
                        <input type="text" name="preco" value="${revista.preco}" />
                    </td>
                </tr>
                 <tr>
                    <td>Edição(aaaa):</td>
                    
                   <td>
                </tr>        
                        
                        <input type="text" name="edicao" value="<fmt:formatDate value="${revista.edicao}" 
                                        type="DATE" pattern="yyyy"/>                            
                     </td>
                </tr>
                <tr>
               
                    <td colspan='2'>
                    <input type="submit" value= "Atualizar" name= "btAtualizar" />
                       
                    </td>
                </tr>
                
            </table>
         
        </form>
         <c:import url="_templates/footer.jsp" />            
    </body>
</html>
